package com.sumainfor.wx.tenant.feign;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.common.utlis.Pager;
import com.sumainfor.wx.tenant.fallback.EpcFeignClientFallback;
import org.omg.CORBA.OBJ_ADAPTER;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @Author PuaChen
 * @Create 2019-01-25 14:36
 * 工程部调用
 */
@FeignClient(value = "TANGNEST-PC-EPC", fallback = EpcFeignClientFallback.class)
public interface EpcFeignClient {

    ///////////////////////////////////////////////////////////////////////////
    // 小马 定义的接口
    ///////////////////////////////////////////////////////////////////////////

    //todo


    ///////////////////////////////////////////////////////////////////////////
    // 陈 定义的服务接口
    ///////////////////////////////////////////////////////////////////////////

    //todo

    ///////////////////////////////////////////////////////////////////////////
    // 周聪定义的接口
    //////////////////////////////////////////////////////////////////////////

    @PostMapping("/tenant/key/tcepcArticle/getMaintenanceHistory")
    JsonResult getMaintenanceHistory(@RequestBody Map<String,Object> params);

    @PostMapping("/tenant/key/tcepcArticle/getTcepcArticleType")
    JsonResult getTcepcArticleType();

    @PostMapping("/tenant/key/tcepcArticle/getTcepcArtice")
    JsonResult getTcepcArtice(@RequestBody Map<String,Object> params);

    @PostMapping("/tenant/key/tcepcArticle/getTcepcArticleTrouble")
    JsonResult getTcepcArticleTrouble(@RequestBody Map<String,Object> params);

    @PostMapping("/tenant/key/tcepcArticle/insertTcepcRepair")
    JsonResult insertTcepcRepair(@RequestBody Map<String,Object> params);

    @PostMapping("/tenant/key/tcepcArticle/toAccept")
    JsonResult toAccept(@RequestBody Map<String,Object> params);

    @PostMapping("/tenant/key/tcepcArticle/forTheDoor")
    JsonResult forTheDoor(@RequestBody Map<String,Object> params);

    @PostMapping("/tenant/key/tcepcArticle/toBePaid")
    JsonResult toBePaid(@RequestBody Map<String,Object> params);

    @PostMapping("/tenant/key/tcepcArticle/toEvaluate")
    JsonResult toEvaluate(@RequestBody Map<String,Object> params);

    @PostMapping("/tenant/key/tcepcArticle/hasBeenCompleted")
    JsonResult hasBeenCompleted(@RequestBody Map<String,Object> params);

    @PostMapping("/tenant/key/tcepcArticle/getStarAvg")
    JsonResult getStarAvg(@RequestBody Map<String,Object> params);

    /**
     * 取消预约
     * @param params
     * @return
     */
    @PostMapping("/tenant/key/tcepcArticle/deleteTcepcRepair")
    JsonResult deleteTcepcRepair(@RequestBody Map<String,Object> params);

    /**
     * 增加维修评价
     * @param params
     * @return
     */
     @PostMapping("/tenant/key/tcepcArticle/insertRepairEva")
    JsonResult insertRepairEva(@RequestBody Map<String,Object> params);

     @PostMapping("/tenant/key/TenantZhiNeng/getTenRoom")
    JsonResult getTenRoom(@RequestBody Map<String,Object> params);
}
